package top.lixunda.ecommerce.server.user.api.entity.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 地区市数据库
 * </p>
 *
 * @author Xumda
 * @since 2019-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("position_county")
public class PositionCountyDO extends Model<PositionCountyDO> {

    private static final long serialVersionUID=1L;

    /**
     * 地级市主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 地级市id
     */
    @TableField("city_id")
    private Long cityId;

    /**
     * 县级id
     */
    @TableField("county_id")
    private Long countyId;

    @TableField("county_name")
    private String countyName;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
